package com.chanyachting.emall.serviceImpl;

import java.util.List;

import com.chanyachting.emall.dao.DockDAO;
import com.chanyachting.emall.domain.Docksell;
import com.chanyachting.emall.service.DockSellService;

public class DockSellServiceImpl implements DockSellService {

	private DockDAO cDao;

	public DockSellServiceImpl() {

		this.cDao = new DockDAO();
	}
	
	@SuppressWarnings("unchecked")
	public List<Docksell> QueryDockSellByDockId(String dockId) {
		String sql = "from Docksell where dockId = ? and ifshow = '01'";
		
		List<Docksell> l = this.cDao.find(sql, new String[]{dockId});
		
		return l;
	}
}
